import request from "../request";
let baseURL = "https://www.shzsnk.com.cn:8099";
/**
 * 获取banner
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export function getBanner(data) {
  return request.post(baseURL + "/api/Business/GetBear", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

/**
 * 获取登录验证码
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export function LoginCode(data) {
  return request.post(baseURL + "/api/Business/LoginCode", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

/**
 * 获取用户手机号
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export function GetUserPhoneNumber(data) {
  return request.post(baseURL + "/api/Business/GetUserPhoneNumber", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

/**
 * 获取用户信息
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export function GetUser(data) {
  return request.post(baseURL + "/api/Business/GetUser", data, {
    loading: true,
    loadingText: "加载中...",
  });
}

/**
 * 保存反馈
 * @param {Object} data 登录参数
 * @returns {Promise}
 */
export function SaveFeedBack(data) {
  return request.post(baseURL + "/api/Business/SaveFeedBack", data, {
    loading: true,
    loadingText: "加载中...",
  });
}
